package com.js.gate.server.config;

import com.js.auth.client.interceptor.ServiceFeignInterceptor;
import org.springframework.context.annotation.Bean;

/**
 * @author： ygl
 * @date： 2018/10/28
 * @Description：
 */
public class FeignConfig {

    /**
     * 服务间互相调用时，feign统一配置header
     * @return
     */
    @Bean
    ServiceFeignInterceptor getClientTokenInterceptor(){
        return new ServiceFeignInterceptor();
    }
}
